package com.oracle.oa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;



@Entity                        
@Table(name="manualsign")
public class Manualsign  implements java.io.Serializable {


	 @GenericGenerator(name = "generator", strategy = "increment")
	 @Id
	 @GeneratedValue(generator = "generator")
	 @Column(name = "signid", unique = true, nullable = false)
     private int signid;
	 
	 @ManyToOne
 	 @JoinColumn(name = "userinfo_id")
     private Userinfo userinfo;
	 @Column(name = "username", length = 64)
     private String signtime;
	 @Column(name = "signdesc", length = 64)
     private String signdesc;
	 @Column(name = "signtag", length = 64)
     private String signtag;
	public int getSignid() {
		return signid;
	}
	public void setSignid(int signid) {
		this.signid = signid;
	}
	public Userinfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	public String getSigntime() {
		return signtime;
	}
	public void setSigntime(String signtime) {
		this.signtime = signtime;
	}
	public String getSigndesc() {
		return signdesc;
	}
	public void setSigndesc(String signdesc) {
		this.signdesc = signdesc;
	}
	public String getSigntag() {
		return signtag;
	}
	public void setSigntag(String signtag) {
		this.signtag = signtag;
	}
	public Manualsign(int signid, Userinfo userinfo, String signtime,
			String signdesc, String signtag) {
		this.signid = signid;
		this.userinfo = userinfo;
		this.signtime = signtime;
		this.signdesc = signdesc;
		this.signtag = signtag;
	}
	public Manualsign() {
		super();
	}
	@Override
	public String toString() {
		return "Manualsign [signid=" + signid + ", userinfo=" + userinfo
				+ ", signtime=" + signtime + ", signdesc=" + signdesc
				+ ", signtag=" + signtag + "]";
	}
	public Manualsign(Userinfo userinfo, String signtime, String signdesc,
			String signtag) {
		this.userinfo = userinfo;
		this.signtime = signtime;
		this.signdesc = signdesc;
		this.signtag = signtag;
	}

	

}